/*
 *  您可以更改此项目但请不要删除作者署名谢谢，否则根据中华人民共和国版权法进行处理.
 *  You may change this item but please do not remove the author's signature,
 *  otherwise it will be dealt with according to the Copyright Law of the People's Republic of China.
 *
 *  如果需要联系到我请加Wechat: yangbuyiya 备注交流学习
 *  If you need to contact me, please add Wechat: yangbuyiya as a note to exchange and learn.
 *  yangbuyi Copyright (c) https://yby6.com 2024.
 */

package com.yby6.config.properties;


import com.yby6.yuanqi.sdk.domain.yuanqi.YuanQiCompletionRequest;
import lombok.Data;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Init;
import org.noear.solon.annotation.Inject;

/**
 * 元器属性
 *
 * @author Yang Shuai
 * Create By 2024/06/26
 */
@Data
@Configuration
@Inject("${yuanqi.sdk.config}")
public class YuanQiSDKConfigProperties {

    /**
     * 转发地址
     */
    private String apiHost;
    /**
     * api密钥
     */
    private String apiKey;
    /**
     * 智能体ID
     */
    private String assistantId;
    /**
     * 用户id
     */
    private String userId;

    @Init
    public YuanQiCompletionRequest.YuanQiCompletionRequestBuilder builder() {
        return YuanQiCompletionRequest.builder()
                .stream(false)
                .assistantId(assistantId)
                .userId(userId);
    }

}
